<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>Hash Table</title>
	<script type="text/javascript" src="hash.js" ></script>
	<script type="text/javascript" >

		var h = new Hash({
			sports:["gym","run","marcial","Andre Cassal","Gustavo Garcia,&*$"],
			name:"andre",
			lastname:"cassal",
			age:21,
			birthday:new Date()
			})
			
		window.onload=function(){
			console.log(h.toQueryString())
			
			console.log("IndexOf",h.indexOf("cassal"))
			
			console.log("LastIndexOf",h.lastIndexOf(21))
			
			/* Returns true if every element in this array satisfies the provided testing function. */
			console.log("Every",h.every(function(a,v,i,s){
				return typeof(v) == "number";
			}))
			
			/* Returns true if at least one element in this array satisfies the provided testing function. */
			console.log("Some",h.some(function(a,v,i,s){
				return typeof(v) == "array";
			}))
			
			/* Creates a new array with all of the elements of this array for which the provided filtering function returns true. */
			console.log("Filter",h.filter(function(a,v,i,s){
				return typeof(v) == "string";
			}))
			
			/* Creates a new array with the results of calling a provided function on every element in this array. */
			console.log("Map",h.map(function(a,v,i,s){
				return v.toString();
			}))
				
		}
	</script>
</head>
<body>
	
</body>
</html>